package com.practice.datasource;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class BasicDataSource extends DataSource{

    private final String url = SQLConstant.URL;
    private final String user = SQLConstant.USER;
    private final String password = SQLConstant.PASSWORD;

    @Override
    public Connection getConnection() throws SQLException {
        return DriverManager.getConnection(url,user,password);
    }
}
